<?php


namespace app\api\model;
use think\Model;

class Airport extends Model
{
    protected $name = 'airport';


    public function getTimeZone($airport){
        return self::alias('a')->where('a.id',$airport)->leftJoin('area','area.id=a.country')->value('timezone');
    }
}